from messAround.util.database import BaseModel, BaseModelField
from sqlalchemy import Column
from sqlalchemy import VARCHAR, Integer


# B站热门排行榜
class BiliBiliRankModel(BaseModel.base, BaseModelField):
    __tablename__ = 'hot_bilibili_rank'
    title = Column(VARCHAR(1000))
    info = Column(VARCHAR(1000))
    channel = Column(VARCHAR(1000))
    cover = Column(VARCHAR(1000))
    dynamic = Column(VARCHAR(1000))
    video = Column(VARCHAR(1000))
    video_id = Column(VARCHAR(1000))
    video_duration = Column(Integer, default=0)
    play = Column(Integer, default=0)
    danmaku = Column(Integer, default=0)
    share = Column(Integer, default=0)
    like = Column(Integer, default=0)
    reply = Column(Integer, default=0)
    coin = Column(Integer, default=0)
    author_id = Column(Integer, default=0)
    author_avatar = Column(VARCHAR(1000))
    author_name = Column(VARCHAR(1000))
    create_time = Column(Integer, default=0)


# B站热搜
class BiliBiliSearchModel(BaseModel.base, BaseModelField):
    __tablename__ = 'hot_bilibili_search'
    keyword = Column(VARCHAR(1000))
    link = Column(VARCHAR(1000))
